package com.example.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.example.dto.Stock;

@FeignClient("nacos-discovery-provider")
public interface WarehouseServiceFeignClient {
	
	@GetMapping("/stock")
    public Stock getStock(@RequestParam("skuId") Long skuId);

}
